projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14659f6
)
make smie.el respect prog-first-column
author
Tom Tromey
<tom@tromey.com>
Thu, 23 Mar 2017 17:32:59 +0000
(11:32 -0600)
committer
Tom Tromey
<tom@tromey.com>
Wed, 5 Apr 2017 21:53:39 +0000
(15:53 -0600)
* lisp/emacs-lisp/smie.el (smie-indent-bob): Call prog-first-column.
lisp/emacs-lisp/smie.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/smie.el
b/lisp/emacs-lisp/smie.el
index 4d02b751afee2cef38e0e18bb82fe02ca86f12d3..7baccbc7524174252cfac3e9c7bbe35010241cfe 100644
(file)
--- a/
lisp/emacs-lisp/smie.el
+++ b/
lisp/emacs-lisp/smie.el
@@
-123,6
+123,8
@@
(eval-when-compile (require 'cl-lib))
+(require 'prog-mode)
+
(defgroup smie nil
"Simple Minded Indentation Engine."
:group 'languages)
@@
-1455,7
+1457,7
@@
in order to figure out the indentation of some other (further down) point."
;; Start the file at column 0.
(save-excursion
(forward-comment (- (point)))
- (if (bobp)
0
)))
+ (if (bobp)
(prog-first-column)
)))
(defun smie-indent-close ()
;; Align close paren with opening paren.